package 面向对象初级.封装.封装的实现;

public class StudentTest {
    public static void main(String[] args) {
        Student student1 = new Student();
        Student student2 = new Student("张三", 20);
        Student student3 = new Student("王五", 18);
        Student student4 = new Student("李凯", 24, "物联网", "宝文理");
        System.out.println(student1.name+" "+student1.age+" "+student1.school+" "+student1.major);
        System.out.println(student2.name+" "+student2.age+" "+student2.school+" "+student2.major);
        System.out.println(student3.name+" "+student3.age+" "+student3.school+" "+student3.major);
        System.out.println(student4.name+" "+student4.age+" "+student4.school+" "+student4.major);
    }
}
